import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
//引入signin模块
import Signin from '@/components/SignIn/SignIn'
const Home = () =>import('@/components/Home/Home')
const PermissionManage = ()=>import('@/components/Home/System/PermissionManage')
const UserManage = ()=>import ('@/components/Home/System/UserManage')
const RoleManage = ()=>import('@/components/Home/System/RoleManage')
const GamesManage = ()=>import('@/components/Home/System/GamesManage')
export default new Router({
  routes: [
  		{
  			path:'/',
  			redirect:{name:'Home'}
  		},
  		{
  			path:'/Home',
  			component:Home,
  			name:'Home',
  			
  			children:[
  				{
  					path:'PermissionManage',
  					name:'权限管理',
  					component:PermissionManage
  				},
  				{
  					path:'UserManage',
  					name:'用户管理',
  					component:UserManage
  				},
  				{
  					path:'RoleManage',
  					name:'角色管理',
  					component:RoleManage
  				},
  				{
  					path:"GamesManage",
  					name:'彩票列表',
  					component:GamesManage
  				}
  				
  				
  			]
  		},
     {
       path: '/Signin',
       name: 'Signin',
       component: Signin
     }
  ]
})
